def public(case,response,xycode,success,code,message):
    case.assertEqual(xycode,response.status_code)
    case.assertEqual(success, response.json().get("success"))
    case.assertEqual(code, response.json().get("code"))
    case.assertIn(message, response.json().get("message"))
